package com.lwc.backendsinglestructure.utils;

import java.util.Map;

/**
 * 线程本地存储工具类
 */
public class ThreadLocalUtil {

    private static final ThreadLocal<Map<String,Object>> threadLocal = new ThreadLocal<>();

    public static void set(Map<String,Object> map) {
        threadLocal.set(map);
    }

    public static Map<String,Object> get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
